package com.xltq.utils;

/**
 * 数据共通类(封装着项目中常用的字符串)
 */
public class Constants {
    /**
     * 这个类中提供都是静态常量
     */
    public static final String TAG = "method"; // 主要在BaseServlet中作为方法的固定获取
    public static final String FORWARD = "forward:"; //转发标识符
    public static final String REDIRECT = "redirect:";//重定向标识符
    public static final String FLAG = ":";//分隔符号
    public static final String INDEX = "index";//主页
    public static final String USER_NOT_ACTIVE = "0"; //用户为激活状态
    public static final String USER_ACTIVE = "1"; //用户激活状态
    public static final int ACTIVE_FAIL = 0 ; //激活失败
    public static final int ACTIVE_SUCCESS = 1; //激活成功
    public static final int ACTIVE_ALREADY = 2; //已经激活
    public static final String  HAS_USER = "1";//用户存在表示不能注册
    public static final String  NOT_HAS_USER = "2";//用户不存在可以注册
    public static final int  ROLE_CUSTOMER = 0;//普通用户(会员)
    public static final int  ROLE_ADIMN = 1;//管理员(会员)
    public static final String  AUTO_NAME = "atuoName";//自动登录中存的key名字
    public static final String  RIGHT_CODE = "0";// 验证码正确
    public static final String  ERROR_CODE = "1";// 验证码错误
    public static final String  LOGIN_CHECK_NAME_ERROR =  "0"; //登录验证用户名错误
    public static final String  LOGIN_CHECK_NAME_RIGHT =  "1"; //登录验证用户名正确
}
